<!doctype html>
<html lang="zh-CN">
<head>
    <!-- 必须的 meta 标签 -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- Bootstrap 的 CSS 文件 -->
    {% load static %}
    <link href="{% static  'bootsrap/css/bootstrap.min.css' %}" rel="stylesheet">

    <title>在线投票系统</title>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
    <div class="container-fluid container">
        <a class="navbar-brand" href="/user/">在线投票系统</a>
        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarText"
                aria-controls="navbarText" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarText">
            <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                <li class="nav-item">
                    <a class="nav-link active" aria-current="page" href="{% url 'my_media' %}">我的</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link active" aria-current="page" href="{% url 'media_add' %}">添加内容</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link active" aria-current="page" href="{% url 'media_ranking' %}">排行榜</a>
                </li>
{#                <li class="nav-item">#}
{#                    <a class="nav-link" href="#">Features</a>#}
{#                </li>#}
{#                <li class="nav-item">#}
{#                    <a class="nav-link" href="#">Pricing</a>#}
{#                </li>#}
            </ul>
            <span class="navbar-text">
                <div class="dropdown">
  <a class="btn btn-outline-primary dropdown-toggle" type="button" id="dropdownMenuButton1" data-bs-toggle="dropdown"
          aria-expanded="false" style="border-color: white;color: white;">
    欢迎你:{{ request.session.name }}
  </a>
  <ul class="dropdown-menu bg-primary " aria-labelledby="dropdownMenuButton1" >
    <li><a class="dropdown-item" href="#">编辑资料</a></li>
      <li><hr class="dropdown-divider"></li>
    <li><a class="dropdown-item" href="{% url 'password_edit' %}">修改密码</a></li>
      <li><hr class="dropdown-divider"></li>
    <li><a class="dropdown-item" href="{% url 'logout' %}">退出登录</a></li>
  </ul>
</div>

      </span>
        </div>
    </div>
</nav>
{% block user_index %}

{% endblock %}



<!-- 选项 1：包含 Popper 的 Bootstrap 集成包 -->
<script src="{% static 'bootsrap/js/bootstrap.bundle.min.js' %}"></script>


</body>
</html>